cmake_minimum_required(VERSION 3.10)
project(yolo_detector)

# 设置C++标准
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找OpenCV包
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

# 添加可执行文件
add_executable(yolo_detector main.cpp YOLODetector.cpp)

# 链接OpenCV库
target_link_libraries(yolo_detector ${OpenCV_LIBS})

# 显示OpenCV版本
message(STATUS "OpenCV版本: ${OpenCV_VERSION}") 